package com.cdck.safe.dete.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cdck.safe.dete.model.entity.CheckRecord;
import com.cdck.safe.dete.model.query.BaseKeywordsQuery;
import com.cdck.safe.dete.model.vo.CheckRecordVO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageRequest;

/**
 * (CheckRecord)表服务接口
 *
 * @author Sakura
 * @since 2024-02-29 10:19:59
 */
public interface CheckRecordService extends IService<CheckRecord> {


    /**
     * 分页列表
     *
     * @return
     */
    IPage<CheckRecordVO> queryByPage(BaseKeywordsQuery queryParams);


    /**
     * 获取表单数据
     *
     * @param id
     * @return
     */
    CheckRecord getCheckRecordFormData(Long id);

    /**
     * 新增数据
     *
     * @param checkRecord CheckRecord对象
     * @return
     */
    boolean saveCheckRecord (CheckRecord checkRecord);

   /**
     * 修改数据
     *
     * @param id   id
     * @paramcheckRecord CheckRecord对象
     * @return
     */
    boolean updateCheckRecord(Long id, CheckRecord checkRecord);

    /**
     * 删除数据
     *
     * @param idsStr id,多个以英文逗号(,)分割
     * @return
     */
    boolean deleteCheckRecords(String idsStr);

    Boolean isChecking(Long userId, String projectId);
}
